package com.example.library_demo.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Eric
 * @since 2024-11-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("l_book")
public class Book implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "book_id", type = IdType.AUTO)
    private Long bookId;

    /**
     * 书名
     */
    private String name;

    /**
     * 作者
     */
    private String auth;

    /**
     * 当前可借数量
     */
    private Integer count;

    /**
     * 存放的书架id
     */
    private Long shelfId;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 价格/天
     */
    private BigDecimal price;

    /**
     * 分数
     */
    private BigDecimal score;

    /**
     * ISBN
     */
    private String isbn;

    /**
     * 图片地址
     */
    private String img;

    /**
     * 简介
     */
    private String description;

    /**
     * 押金
     */
    private BigDecimal deposit;

    private BigDecimal sellPrice;


}
